import App from './App';
import {
	createSSRApp,
} from 'vue';

import uviewPlus from 'uview-plus';

import vShare from "@/common/share.js"

// 引入全局组件
import share from '@/components/share';
import tabBar from '@/components/tabBar';

// 引入全局样式
import '@/styles/index.scss';


export function createApp() {
	const app = createSSRApp(App);

	app.use(uviewPlus);

	app.mixin(vShare)

	app.component('share', share);
	app.component('tabbar', tabBar);

	return {
		app
	};
}